package com.yz.newspaper.pojo.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class DutyVo {

    @ApiModelProperty(value = "值班表id")
    private Long id;

    @ApiModelProperty(value = "值班人id")
    @NotNull
    private Long dutyUserId;

    @ApiModelProperty(value = "用户名称")
    private String username;

    @NotNull
    @ApiModelProperty(value = "值班开始时间")
    private LocalDate startTime;

    @NotNull
    @ApiModelProperty(value = "值班结束时间")
    private LocalDate endTime;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "值班天数")
    private Integer dutyDays;

}
